package com.TP.www.po;

import java.util.Objects;

/**
 * @author 邱彦祥
 * 商家类
 */
public class Merchant extends User{
    /**
     *  商家id
     */
    private Integer id;
    /**
     * 商家名
     */
    private String name;
    /**
     * 密码
     */
    private String password;
    /**
     * 余额
     */
    private Double asset;

    public Merchant() {
    }

    public Merchant(Integer id, String name, String password, Double asset, Integer id1, String name1, String password1, Double asset1) {
        super(id, name, password, asset);
        this.id = id1;
        this.name = name1;
        this.password = password1;
        this.asset = asset1;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getPassword() {
        return password;
    }

    @Override
    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public Double getAsset() {
        return asset;
    }

    @Override
    public void setAsset(Double asset) {
        this.asset = asset;
    }

    @Override
    public String toString() {
        return "Merchant{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", asset=" + asset +
                '}';
    }
}
